/*-------------------------------------------------------------------------
 *
 * pgoutput.h
 *		逻辑复制输出插件
 *
 * Copyright (c) 2015-2022, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
 *		src/include/replication/pgoutput.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef PGOUTPUT_H
#define PGOUTPUT_H

#include "nodes/pg_list.h"

typedef struct PGOutputData
{
	MemoryContext context;		/* 用于瞬态分配的私有内存上下文 */
	MemoryContext cachectx;		/* 用于缓存数据的私有内存上下文 */

	/* 客户端提供的信息： */
	uint32		protocol_version;
	List	   *publication_names;
	List	   *publications;
	bool		binary;
	bool		streaming;
	bool		messages;
	bool		two_phase;
} PGOutputData;

#endif							/* PGOUTPUT_H */
